10. Async JavaScript
Async JavaScript
INSTRUCTOR NOTE:
- Learn more about window.onload event on Mozilla Developer Network
- There is also a
defer
attribute that you can add to the script tag that tells the parser that the script should wait to execute until after the document is loaded. Learn more about the defer attribute
- Learn more about parser blocking vs. asynchronous JavaScript
Follow your instructors!
+Ilya Grigorik, @igrigorik
@cwpittman